package com.cn.springcloudwechat.mapper.mapper.vaccinestation;

import com.cn.springcloudwechat.model.YmStationVaccine;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 疫苗服务站关联关系Mapper
 * @author: Administrator
 * @create: 2018/8/31 14:43
 */
@Repository
public interface YmStationVaccineMapper {

    /**
     *  添加关联关系 (单个)
     * @param record
     * @return
     */
    int insertSelective(YmStationVaccine record);

    /**
     * 查询疫苗服务站关联关系
     * @param stationVaccineId  站点疫苗Id
     * @return
     */
    YmStationVaccine selectByPrimaryKey(Long stationVaccineId);

    /**
     * 更新疫苗站疫苗关系
     * @param list
     * @param stationId
     * @param state
     * @return
     */
    int updateByPrimaryKeySelective(@Param("list") List<Long>list,@Param("stationId")Long stationId,@Param("state") short state);

    /**
     * 批量添加疫苗服务站关联关系
     * @param stationId
     * @param list
     */
    void insertYmStationVaccineBatch(@Param("stationId") Long stationId, @Param("list") List<Long>list);



}